﻿using System;
using System.Collections.Generic;
using WgpgCore.ArgumentParser;

namespace WgpgGUI
{
    public sealed class Arguments
    {
        [AutoSetMember("input", "i")]
        public String Input = null;

        [AutoSetMember("action", "a")]
        public String Action = null;

        public static Arguments Parse(IList<String> args)
        {
            Arguments arguments = new Arguments();

            ArgumentParser parser = new ArgumentParser(ArgumentFormats.NamedValue, true);
            parser.Parse(args);
            parser.AutoSetMembers(arguments);

            return arguments;
        }
    }
}
